var a = getApp();

Page({
    data: {
        id: 0,
        share_show: !1,
        datas: {},
        case_data: []
    },
    onLoad: function(a) {
        a.id && this.setData({
            id: a.id
        }), this.initData(), this.getList();
    },
    initData: function() {
        this.setData({
            datas: [],
            share_show: !0
        });
    },
    getList: function() {
        var t = this, s = a.getNetAddresss("plugin.case-library.api.mobile.home.special-detail");
        a._postNetWork({
            url: s,
            data: {
                id: t.data.id
            },
            success: function(a) {
                var s = a.data;
                1 == s.result ? (t.data.list = [], t.setData({
                    datas: s.data.special,
                    case_data: s.data.special.case_data
                }), t.data.datas.desc && (t.data.datas.desc = t.data.datas.desc.replace(/\n/g, "<br>"), 
                t.setData({
                    datas: t.data.datas
                }))) : wx.showToast({
                    title: s.msg,
                    icon: "none",
                    duration: 1e3
                });
            },
            fail: function(a) {
                console.log(a);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});